# This code is part of the MWP System
# Copyright (c) 2012 Benjamin Lubin (blubin@bu.com) 
# Published under and subject to the GPLv2 license available at http://www.gnu.org/licenses/gpl-2.0.html

'''
Created on Dec 18, 2012
@author: blubin
'''

from frontend.roleApplication import RoleApplication;
from frontend.form import Type;
from unique import UNIQUE

class PilotApplication(RoleApplication):
    """ The PhysicianAsst User Interface """

    def __init__(self):
        super(PilotApplication, self).__init__("Dropzone"+UNIQUE, "Pilot");
        self.register_transition_step("Verify", self.pilot_form_creator, name_fields=["sequence", "FirstName", "LastName"]);

    def pilot_form_creator(self, stepname, form):
        form.add_task_label(fields=["FirstName", "LastName", "Birthday"]);
        form.add_field(Type.BOOLEAN, "AirspaceClear")
# Show whether or not the Controller has approved the Pilot to start next process
    
if __name__ == '__main__':
    app = PilotApplication();
    app.MainLoop();